<table cellspacing="1" cellpadding="4">
    <tr align="center" valign="top">
        <td width="*" align="center" valign="top"><!-- ######### begin ######### -->
            <div class="Block">
                <div class="BlockBar">检索</div>
                <?php
                $this->widget('zii.widgets.grid.CGridView', array(
                    'id' => 'usergroup_grid',
                    'cssFile' => Yii::app()->baseurl . '/public/admin/grid.css',
                    'dataProvider' => $model->search,
                    'id' => 'ta',
                    'itemsCssClass' => 'tab',
                    'rowCssClass' => array('rows', 'rows'),
                    'columns' => array(
                        array('name' => 'usergroup_id', 'headerHtmlOptions' => array('width' => '6%')),
                        array('name' => 'usergroup_name', 'headerHtmlOptions' => array('width' => '10%')),
                        array('name' => 'usergroup_level', 'headerHtmlOptions' => array('width' => '14%'), 'type' => 'html'),
                        array('name' => 'usergroup_description', 'headerHtmlOptions' => array('width' => '10%'), 'type' => 'html'),
                        array('name' => 'usergroup_download_speed', 'headerHtmlOptions' => array('width' => '10%')),
                        array('name' => 'usergroup_daily_play_num', 'headerHtmlOptions' => array('width' => '9%')),
                        array('name' => 'usergroup_create_user', 'headerHtmlOptions' => array('width' => '10%')),
                        array('name' => 'usergroup_create_time', 'value' => 'date("M j, Y", $data->usergroup_create_time)', 'headerHtmlOptions' => array('width' => '12%')),
                        array(
                            'header' => yii::t('default', '操作'),
                            'class' => 'CButtonColumn',
                            'viewButtonLabel' => yii::t('default', '查看组用户'),
                            'viewButtonOptions' => array('class' => 'opendialog gridviewurl'),
                            'viewButtonUrl'=>'Yii::app()->createUrl("user/view", array("id" => $data->usergroup_level))',
                            
                            'headerHtmlOptions' => array('width' => '10%'),
                            'updateButtonLabel' => yii::t('default', '修改详细信息'),
                            'updateButtonOptions' => array('class' => 'opendialog gridviewurl',
                            ),
                        ),
                    ),
                        // 'cssFile'=>Yii::app()->request->baseUrl.'/css/base.css',
                ));
                ?>

            </div>
        </td>
    </tr>
</table>